﻿using System.ComponentModel;

namespace Needle.Core.Lifetime
{
    /// <summary></summary>
    public interface IInstanceTracker : IComponent
    {
        /// <summary>
        /// The instance id of the target.
        /// </summary>
        InstanceId InstanceId { get; }
        /// <summary>
        /// Sets the target to Target, and returns true if it is valid.
        /// </summary>
        bool TryGetTarget(out object target);

    }
}
